package my.wrapper;

public class Soy extends CondimentDecorator {
    //记录被装饰着
    Beverage beverage;

    public Soy(Beverage beverage) {
        this.beverage = beverage;
    }

    @Override
    public String getDescription() {
        return beverage.getDescription() + ", Soy";
    }

    @Override
    public double cost() {
        return 10;
    }
}
